/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package econutri.persistencia.entidades;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import lomtools.persistence.Bean;

/**
 *
 * @author Leonardo Oliveira Moreira
 */
@Entity
@Table(name="alimento")
public class Alimento extends Bean {

    @Id
    @SequenceGenerator(name="alimento_sequence", sequenceName="alimento_codigo_seq")
    @GeneratedValue(generator="alimento_sequence")
    @Column(name = "codigo", nullable=false)
    private Long codigo ;
    @Column(name = "descricao", nullable=false)
    private String descricao;
    @Column(name = "quantidade", nullable=true)
    private Double quantidade;
    @Column(name = "carboidrato", nullable=true)
    private Double carboidrato;
    @Column(name = "proteina", nullable=true)
    private Double proteina;
    @Column(name = "lipidio", nullable=true)
    private Double lipidio;
    @Column(name = "calcio", nullable=true)
    private Double calcio;
    @Column(name = "fosforo", nullable=true)
    private Double fosforo;
    @Column(name = "ferro", nullable=true)
    private Double ferro;
    @Column(name = "sodio", nullable=true)
    private Double sodio;
    @Column(name = "vitaminaa", nullable=true)
    private Double vitaminaA;
    @Column(name = "vitaminab1", nullable=true)
    private Double vitaminaB1;
    @Column(name = "vitaminab2", nullable=true)
    private Double vitaminaB2;
    @Column(name = "niacina", nullable=true)
    private Double niacina;
    @Column(name = "vitaminac", nullable=true)
    private Double vitaminaC;
    @Column(name = "fibra", nullable=true)
    private Double fibra;
    @Column(name = "colesterol", nullable=true)
    private Double colesterol;
    @Column(name = "preco", nullable=false)
    private Double preco;

    public Double getPreco() {
        return preco;
    }

    public void setPreco(Double preco) {
        this.preco = preco;
    }
    
    public Double getCalcio() {
        return calcio;
    }

    public void setCalcio(Double calcio) {
        this.calcio = calcio;
    }

    public Double getCarboidrato() {
        return carboidrato;
    }

    public void setCarboidrato(Double carboidrato) {
        this.carboidrato = carboidrato;
    }

    public Long getCodigo() {
        return codigo;
    }

    public void setCodigo(Long codigo) {
        this.codigo = codigo;
    }

    public Double getColesterol() {
        return colesterol;
    }

    public void setColesterol(Double colesterol) {
        this.colesterol = colesterol;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    public Double getFerro() {
        return ferro;
    }

    public void setFerro(Double ferro) {
        this.ferro = ferro;
    }

    public Double getFibra() {
        return fibra;
    }

    public void setFibra(Double fibra) {
        this.fibra = fibra;
    }

    public Double getFosforo() {
        return fosforo;
    }

    public void setFosforo(Double fosforo) {
        this.fosforo = fosforo;
    }

    public Double getLipidio() {
        return lipidio;
    }

    public void setLipidio(Double lipidio) {
        this.lipidio = lipidio;
    }

    public Double getNiacina() {
        return niacina;
    }

    public void setNiacina(Double niacina) {
        this.niacina = niacina;
    }

    public Double getProteina() {
        return proteina;
    }

    public void setProteina(Double proteina) {
        this.proteina = proteina;
    }

    public Double getQuantidade() {
        return quantidade;
    }

    public void setQuantidade(Double quantidade) {
        this.quantidade = quantidade;
    }

    public Double getSodio() {
        return sodio;
    }

    public void setSodio(Double sodio) {
        this.sodio = sodio;
    }

    public Double getVitaminaA() {
        return vitaminaA;
    }

    public void setVitaminaA(Double vitaminaA) {
        this.vitaminaA = vitaminaA;
    }

    public Double getVitaminaB1() {
        return vitaminaB1;
    }

    public void setVitaminaB1(Double vitaminaB1) {
        this.vitaminaB1 = vitaminaB1;
    }

    public Double getVitaminaB2() {
        return vitaminaB2;
    }

    public void setVitaminaB2(Double vitaminaB2) {
        this.vitaminaB2 = vitaminaB2;
    }

    public Double getVitaminaC() {
        return vitaminaC;
    }

    public void setVitaminaC(Double vitaminaC) {
        this.vitaminaC = vitaminaC;
    }

}
